# 比较运算
x = 5
y = 10
print(x > y)    # False
print(x < y)    # True

# 逻辑运算
x = 5
y = 10
print(x > 3 and y > 3)  # True
print(x > 3 or y > 3)   # True
print(not x > 100)        # True
print(not (x > 3))      # False

# 成员运算
fruits = ["apple", "banana", "orange"]
print("apple" in fruits)    # True
print("pear" not in fruits) # True

# 身份运算
x = [1,2,3]
y = x
z = [1,2,3]
print(x is y)   # True
print(x is z)   # False
print(x == z)   # True

# 单分支示例
score = 80
if score >= 60:
    print("考试通过")

# 二分支示例
score = 80
if score >= 60:
    print("考试通过")
else:
    print("考试未通过")

# 多分支示例
score = 80
if score >= 90:
    print("优秀")
elif score >= 80:
    print("良好")
elif score >= 60:
    print("及格")
else:
    print("不及格")